package cn.itsource.pethome.basic.mapper;

import cn.itsource.pethome.basic.query.BaseQuery;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseMapper<T> {
    /**
     * 添加
     * @param t
     */
    void save(T t);

    /**
     * 更新
     * @param t
     */
    void update(T t);

    void delete();

    /**
     * 批量删除
     * @param ids
     */
    void batchRemove(List<T> ids);

    Page findAll(BaseQuery baseQuery);



}
